/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.spring.servicios;

import com.spring.modelo.DAO.CarreraDAO;
import com.spring.modelo.entidad.Carrera;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author Ricardo
 */
@Service
public class servicioCarrera {
    @Autowired
    private CarreraDAO cdao;

    public List<Carrera> getListaCarrera() {
        return cdao.getListaCarrera();
    }

    public Carrera buscarCarrera(String codigo) {
        return cdao.buscarCarrera(codigo);
    }

    public boolean insertarCarrera(Carrera c) {
        return cdao.insertarCarrera(c);
    }

    public boolean eliminarCarrera(String codigo) {
        return cdao.eliminarCarrera(codigo);
    }
    
    
}
